package com.exchange.View;

import android.content.Context;
import android.widget.ListView;
import com.exchange.Controller.g;
import com.exchange.b.a;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class ah
{
  private int a;
  private U b;
  private List<a> c;

  public ah(ListView paramListView, Context paramContext, int paramInt1, boolean paramBoolean, List<a> paramList, int paramInt2)
  {
    this.a = paramInt2;
    this.c = new ArrayList();
    this.c.addAll(paramList);
    this.b = new U(paramContext, 17367045, this.c, paramInt1, paramBoolean, this.a);
    paramListView.setAdapter(this.b);
    paramListView.setItemsCanFocus(true);
  }

  public U a()
  {
    return this.b;
  }

  public void a(g paramg)
  {
    this.b.a = paramg;
  }

  public void a(List<a> paramList)
  {
    Iterator localIterator = paramList.iterator();
    while (true)
    {
      a locala;
      do
      {
        if (!(localIterator.hasNext()))
          return;
        locala = (a)localIterator.next();
      }
      while (locala.m == 1);
      this.c.add(locala);
      this.b.notifyDataSetChanged();
    }
  }
}